package com.hesicare.cgm.controller;

import com.hesicare.cgm.enums.CgmEnum;
import com.hesicare.cgm.worker.CgmBloodOnWorker;
import com.hesicare.config.cache.Cache;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.Set;

/**
 * @Author 55097
 * @create 2021/12/6 17:12
 */
@Controller
public class CgmPatientController {

    @Autowired
    private CgmBloodOnWorker cgmBloodOnWorker;

    @XxlJob("getCgmBlood")
    public ReturnT<String> getCgmBlood(String param) {
        cgmBloodOnWorker.getCgmBlood();
        return ReturnT.SUCCESS;
    }

    @XxlJob("pushPatient")
    public ReturnT<String> pushPatient(String param) {
        cgmBloodOnWorker.pushPatient();
        return ReturnT.SUCCESS;
    }

}
